<template>
    <h2>登录页面</h2>
    <!-- <div>
        <span>姓名：{{ studentStore.name }}</span><br>
        <span>年龄：{{ studentStore.age }}</span><br>
    <span>年龄增更改后：{{ studentStore.ChangeAge }}</span><br>
    <span><input type="button" @click="studentStore.AddAge" value="增加年龄"></span><br>
    </div>
    <div>
        <span>默认数字:{{ memberStore.count }}</span><br/>
        <span>计算结果后:{{ memberStore.doubleCount }}</span><br/>
        <span><input type="button" value="增加之后的数字" @click="memberStore.AddCount"></span><br/>
  

    </div> -->
</template>
<script setup lang="ts">

// import{useStudentStore,useMemberStore} from '../stores/index.ts'


// //创建仓库实例
// const studentStore=useStudentStore();
// const memberStore=useMemberStore();


import { useGoodsStore } from '../stores/index.ts';;

import { useRouter } from 'vue-router';

const goodsStore=useGoodsStore();
goodsStore.Gname="苹果";


</script>